package com.lhkj.ct.meta.modules.gauge.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lhkj.ct.base.model.Option;
import com.lhkj.ct.base.model.dto.PageQuery;
import com.lhkj.ct.base.mybatis.extension.service.IPageService;
import com.lhkj.ct.base.mybatis.extension.service.IService;
import com.lhkj.ct.meta.modules.gauge.model.entity.TblGaugeCategory;

import java.util.List;

/**
 * <p>
 * 量表/问卷类别 服务类
 * </p>
 *
 * @author jobob
 * @since 2023-10-08
 */
public interface GaugeCategoryService extends IService<TblGaugeCategory>, IPageService<TblGaugeCategory> {

    /**
     * 测量类别 - 分页查询
     */
    IPage<TblGaugeCategory> selectCategoryPage(TblGaugeCategory category, PageQuery pageQuery);

    /**
     * 测量类别 - 分页查询
     */
    IPage<Option<String>> selectCategoryOptions(TblGaugeCategory category, PageQuery pageQuery);

    /**
     * 校验名称唯一
     */
    boolean checkNameUnique(TblGaugeCategory category);
}
